{% extends "base.html" %}

{% block title %}班级大事记{% endblock %}
{% block content %}
<div class="ui container">
	<h1>那些永远忘不掉的事情</h1>
	<br/>

	<h4 class="ui block top attached header _header_1efka_1">
        <div class="content">班级大事记</div>
    </h4>
    <div class="ui bottom attached segment _segment_1efka_4">
        <table class="ui unstackable very basic table _table_1efka_10">
            <thead class="">
                <tr class="">
                    <th class="">标题</th>
                    <th class="three wide ">日期</th>
                </tr>
            </thead>
            <tbody class="">
                {% for event in sort_events %}
                <tr class="">
                    <td class=""><a class=" " href="{% url 'events:look' event.event_id %}">{{ event.title }}</a>
                    </td>
                    <td class="one wide ">{{ event.date }}</td>
                </tr>
                {% empty %}
                <tr class="">
                    <td class=""><a class=" ">啥事儿没有</a></td>
                    <td class="one wide "></td>
                </tr>
                {% endfor %}

            </tbody>
        </table>
    </div>
	

	<a role="button" class="ui button" href="{% url 'events:create' %}">我要补充！</a>
	</div>
{% endblock %}